package com.guiji.quartz.task;

import com.guiji.quartz.domain.PeopleEnglishWorld;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @program: cms-vue-plus
 * @description:
 * @author: gaoX
 * @date 2021/11/15 9:40
 */
@Component("peopleEnglishWorldTask")
public class PeopleEnglishWorldTask {
	private static final Logger log = LoggerFactory.getLogger(PeopleEnglishWorldTask.class);
	public void peopleEnglishWorldTask() throws Exception {
		Long startTime = System.currentTimeMillis();
		PeopleEnglishWorld peopleEnglishWorld = new PeopleEnglishWorld();
		try {
			peopleEnglishWorld.mainMethod();
		} catch (Exception e) {
		}finally {
			log.info("PeopleEnglishWorldTask-end-:{}",System.currentTimeMillis()-startTime);
		}

	}
}
